package com.zhouidea.www.control.ChooseStucture.If;


import java.util.Scanner;

public class IfDemo1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入内容");
        String s = scanner.nextLine();

        //if单选择
        //equals：判断字符串是否相等
        if(s.equals("Hello")){
            System.out.println("ok");
        }

        System.out.println("end");
        scanner.close();
    }
}
